<script id="view-banner-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-banner">
	<input type="hidden" name="id" value="{{id}}"/>
	<input type="hidden" id="sid" value="{{status}}"/>
		<div class="row">
			<div class="col-sm-8">
				<div class="form-group">
					<label class="col-sm-2 control-label required " for="link">广告链接</label>
						<div class="col-sm-10">
							<input name="link" id="link" type="text"
								class="form-control" required="required" value="{{link}}">
						</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="status">广告位置</label>
					<div class="col-sm-8">
						<select name="status" id="status" class="chosen-select"> 
							<option value="0">欢迎页</option>
							<option value="1">顶部banner</option>
							<option value="2">底部banner</option>
						</select>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-sm-8">
				<div class="form-group">
					<label class="col-sm-2 control-label" for="url">广告图片</label>
					<div class="col-sm-10">
						<input name="url" id="url" type="text"
							class="form-control" value="{{url}}" readonly="readonly">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="username">发布人</label>
					<div class="col-sm-8">
						<input name="username" id="username" type="text" class="form-control" readonly="readonly" value="{{username}}">
						<input name="userid" id="userid" type="hidden" value="{{userid}}">
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="organ">投放机构</label>
					<div class="col-sm-8">
						<input name="organ" id="organ" type="text"
							class="form-control" value="{{organ}}" >
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="price">投放金额</label>
					<div class="col-sm-8">
						<input name="price" id="price" type="text"
							class="form-control" value="{{price}}" >
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="createDate">签约时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input name="createDate" id="createDate" type="text" class="form-control" value="{{createDate}}" > 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>
			
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="fromDate">起止时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input name="fromDate" id="fromDate" type="text" class="form-control" value="{{fromDate}}"> 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="overDate">终止时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input name="overDate" id="overDate" type="text" class="form-control" value="{{overDate}}"> 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>		

		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-banner">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-banner', '.form-editor-banner');">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>							
	</div>
	</form>
</script>
	
		
	
	
